import { ExtractPropTypes, PropType } from "vue";

export const navItemProp = {
    title: { default: '', type: String }
    // 还需要知道它导向哪里
}
export type NavItemProp = ExtractPropTypes<typeof navItemProp>;

export const ResourceProps = {
    imgUrl: { default: null, type: String },
    title: { default: '', type: String },
    description: { default: '', type: String },

}


export const memoryVoiceResourceListProps = {

    /** 资料列表 */
    data: { default: [], type: Array<any> },

    /** 显示方向:'Vertical'|'Horizontal'  */
    showDirection: { default: 'Horizontal', type: String },

    mainCategory: { default: null, type: Object as PropType<NavItemProp> },
    subCategories: { default: [], type: Array<NavItemProp> },

    isHot: { default: true, type: Boolean }

};
export type MemoryVoiceResourceListProps = ExtractPropTypes<typeof memoryVoiceResourceListProps>;

